/**
 * 
 */
package name.webdizz.gadget.four.envelope.client.util;

import name.webdizz.gadget.four.envelope.client.domain.User;

import com.google.gwt.xml.client.Document;
import com.google.gwt.xml.client.NodeList;
import com.google.gwt.xml.client.XMLParser;

/**
 * @author Izzet_Mustafayev
 * 
 */
public class XmlUserParser {

	public static void fillUser(final User user, final String response) {
		Document dom = XMLParser.parse(response);
		NodeList nodeList = dom.getElementsByTagName("currency");
		user.setCurrency(XmlEnvelopeParser.createCurrency(nodeList));
	}
}
